/**
 * 
 */
(function() {
    'use strict';

    angular
        .module('milkbeeApp')
        .config(stateConfig);

    stateConfig.$inject = ['$stateProvider'];

    function stateConfig($stateProvider) {
        $stateProvider
        .state('groupmonth', {
            parent: 'admin',
            url: '/groupmonth',
            data: {
                authorities: ['ROLE_USER'],
                pageTitle: 'milkbeeApp.card.home.title'
            },
            views: {
                'content@': {
                    templateUrl: 'app/admin/groupmonth/groupmonth.html',
                    controller: 'GroupMonthController',
                    controllerAs: 'vm'
                }
            },
            params: {
            	startDate:null
                	
            },
            resolve: {
                pagingParams: ['$stateParams', 'PaginationUtil', function ($stateParams, PaginationUtil) {
                    return {
                    	startDate:$stateParams.startDate
                    };
                }],
                translatePartialLoader: ['$translate', '$translatePartialLoader', function ($translate, $translatePartialLoader) {
                    $translatePartialLoader.addPart('monitor');
                    $translatePartialLoader.addPart('global');
                    return $translate.refresh();
                }]
            }
        })

    }

})();
